#include "dlglogin.h"
#include "database/databaseoperations.h"
#include "ui_dlglogin.h"

DlgLogin::DlgLogin(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::DlgLogin)
{
    ui->setupUi(this);

    this->setWindowTitle("登录");
}

DlgLogin::~DlgLogin()
{
    delete ui;
}

bool DlgLogin::IsDatabaseConnect()
{
    return DatabaseOperations::Instance().DatabaseConnect();
}
